import Vuex from 'vuex'

const store = () => new Vuex.Store({
  state: {
    provinceList: {},
    countyList: {},
  },
  mutations: {
    setProvinceList(state, provinceList) {
      state.provinceList = provinceList
    },
    setCountyList(state, countyList) {
      state.countyList = countyList
    }
  }
})

export default store
